package com.sziit.se.highconcurrency.user.application.mapper;

import com.sziit.se.highconcurrency.common.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dongchunkeng
 * @since 2022-09-21
 */
public interface UserMapper extends BaseMapper<User> {
    List<User> getAllData();

    Boolean insertUser(
            @Param("userId") String userId,
            @Param("userName") String userName,
            @Param("password") String password,
            @Param("phone") String phone
    );

    User getOneData(@Param("userName") String userName);

    User getById(@Param("userId") String userId);

}
